package com.bw.seckill.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xingjinning
 * @since 2020-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_seckill_order")
public class TbSeckillOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单编号
     */
    private String code;

    /**
     * 商品id
     */
    @TableField("goodsId")
    private Long goodsId;

    /**
     * 用户id
     */
    @TableField("userId")
    private Long userId;

    /**
     * 付款金额
     */
    private BigDecimal amount;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;

    /**
     * 付款时间
     */
    @TableField("payTime")
    private Date payTime;

    /**
     * 订单状态（0未支付，1已支付，2已过期，3已取消）
     */
    private Long status;


}
